package org.abbett.eskine.controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

import org.abbett.eskine.service.PageService;

import org.abbett.eskine.entity.Page;
 
import org.abbett.eskine.service.PageDeleteThisPageOutcome;

/**
 * Glue code to bind Wiki Page Service with the view framework (Seam)
 * 
  * Displays a wiki page. If no page ID parameter is provided, displays most recently updated wiki page. If no pages exist, displays new-user welcome message.
  *
 * Automatically generated by clickframes
 * 
 * @author Vineet Manohar
 */
@Name("pageController")
@Scope(ScopeType.CONVERSATION)
public class PageController extends GeneratedPageController {
    @SuppressWarnings("unused")
    private final Log logger = LogFactory.getLog(getClass());

    /**
     * Delete this page
     *
      * Automatically generated by clickframes
     */
    @Override
    public PageDeleteThisPageOutcome deleteThisPage() {
        logger.error("Method not implemented yet.  Please implement PageService.deleteThisPage()");
    
        PageService.DeleteThisPageResponse deleteThisPageResponse = pageService.deleteThisPage(describe());

        // store response, if persisting to session is needed    

        return deleteThisPageResponse.getOutcome();
    }

  

    private static final long serialVersionUID = 1L;
}// clickframes::version=3535228589::clickframes